﻿#ifndef WINPROCESSINFO_H
#define WINPROCESSINFO_H
#include <QStringList>
#include <QVector>
#include <windows.h>
class WinProcessInfo
{
public:
    WinProcessInfo();
    static QString PIDtoName(unsigned long pid);
    static QStringList listNames(bool removeUnknown = true);
    static QVector<unsigned long> listPID();
    static QVector<unsigned long> nameToPID(QString name);
    static int killProcess(QString processName);
    static bool killProcess(unsigned long pid);

    static QStringList listWindows();
    static bool findWindow(QString name);
};



#endif // WINPROCESSINFO_H
